﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="View.aspx.cs" Inherits="Pages_View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>View</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/PageStyle.css" rel="stylesheet" type="text/css" />
   <style type="text/css">
        .header_cell
        {
            font-family:@微软雅黑;    
            font-weight:bold;
            color:White; 
            background-color: #0000C6;
            padding:5px}
        .top
        {
            font-family:@Arial Unicode MS;
            font-weight:bold;
            color:White;
            background-color:Gray; 
            margin-bottom:20px;
            padding:10px 0 10px 0;
            width:auto}
            
       #save_condition
 {
     border:1px solid grey;
     margin:10px 0 10px 0;
     color:Blue;
     }
 #save_condition div
 {
     padding:5px;
     width:280px;
     margin:5px;
     float:left}
    </style>

    <script language="javascript" type="text/javascript">
        function checkNull() {
            var result = true;
            var searchName = document.getElementById("<%=tb_searchName.ClientID %>").value;
            var ownerStaffNo = document.getElementById("<%=tb_ownerStaffNo.ClientID %>").value;
            //var createdUser = document.getElementById("<%=tb_createdUser.ClientID %>").value;
            if (searchName == "" || ownerStaffNo == "") {
                result = false;
                var remind = document.getElementById("<%=lbl_remind.ClientID %>");
                remind.style.color = "red";
                remind.innerHTML = "Please fill in all information";
            }
            return result;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left:auto; margin-right:auto; width:80%; margin-top:40px">
        <div class="TurquoisePodHeaderNoHover">
            View         
        </div>

        <div id="save_condition">
            <div>
                <span class="LableStyle">SearchName</span>
                <asp:TextBox ID="tb_searchName" runat="server" CssClass="InputStyle"></asp:TextBox>
            </div>
            <div>
                <span class="LableStyle">Owner Staff No.</span>
                <asp:TextBox ID="tb_ownerStaffNo" runat="server" CssClass="InputStyle"></asp:TextBox>
            </div>
            <!--<div>
                <span class="LableStyle">Created User</span>
                <asp:TextBox ID="tb_createdUser" runat="server" CssClass="InputStyle"></asp:TextBox>
            </div>-->
            <div style="width:auto">
                <asp:Button ID="btn_save" runat="server" Text="Save" CssClass="ButtonStyle"
                    OnClientClick="return checkNull()" onclick="btn_save_Click" />&nbsp
                <asp:Label ID="lbl_remind" runat="server" Text="" class="LableStyle"></asp:Label>
            </div>

            <div style="clear:both"></div>
        </div>

        <div style="width:auto">
            <asp:Repeater ID="Repeater1" runat="server"
                onitemdatabound="Repeater1_ItemDataBound">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
                        <tr>
                            <td class="RepeaterTableHead">Chargeable_Cost_Centre_No.</td>
                            <td class="RepeaterTableHead">Requestor_Staff_No.</td>
                            <td class="RepeaterTableHead">Requestor_Cost_Centre_No.</td>
                            <td class="RepeaterTableHead">Assigned_Team_Code</td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        
     </div>
    </form>
</body>
</html>
